<script setup lang="ts">
import { onMounted, ref} from "vue";
import {LoadModuleConfig} from "../wailsjs/go/view/App";
import { RouterView } from 'vue-router'
import {useBaseStore} from "@/stores/base.ts";
const baseStore = useBaseStore()

onMounted( async ()=>{
  await LoadModuleConfig().then(res =>{
    console.log(res)
    baseStore.musicConfig.currentSongId = res.musicCurrentId
    baseStore.musicConfig.loopModule = res.musicLoopMode
    baseStore.privateSecret = res.privateSecret
  })
})

</script>

<template>
  <RouterView />
</template>

<style scoped></style>
